<?php
    include_once 'config.php';

    if ($_COOKIE['LOG'] == false) {
        header('Location: index.php');
    }

    include 'layout/header.php';
?>
<body>
    <div data-role="page">
        <div data-role="header" data-theme="b" class="ui-overlay-shadow">
            <h1>WeZett Projects</h1>
            <a href="info.html" data-role="button" data-icon="info" class="ui-btn-right" data-theme="a" data-iconpos="notext">Home</a>
        </div>
        <div data-role="content" data-theme="c">
            <ul class="ui-listview ui-listview-inset ui-corner-all ui-shadow" data-inset="true" data-role="listview">
                <li class="ui-li ui-li-static ui-body-c ui-corner-top">
                    <table align="center">
                        <tr>
                            <td style="vertical-align: middle; text-align:center">
                                Eingeloggt: <font style="color:green"><?php echo $_COOKIE['VNAME'] . ' ' . $_COOKIE['NNAME']; ?></font>.<br />
                            </td>
                        </tr>
                    </table>
                </li>
            </ul>
            <h2>Hauptmen&uuml;</h2>
            <ul class="ui-listview ui-listview-inset ui-corner-all ui-shadow" data-inset="true" data-role="listview">
                <li data-theme="b" data-icon="false"><a href="projects/index.php">
                        <img src="assets/images/projects/project-icon.png" style="margin: 17px;"/>
                        <h3>Projekte</h3>
                        <p>Gesch&auml;ftsjahr <?php echo date('Y'); ?></p>
                </a></li>
                <li data-theme="b" data-icon="false"><a href="projects/archive.php">
                        <img src="assets/images/projects/archive-icon.png" style="margin: 17px;"/>
                        <h3>Archiv</h3>
                        <p>2005 - <?php echo date('Y')-1; ?></p>
                </a></li>
<!--                <li data-theme="b" data-icon="false"><a href="#">
                        <img src="assets/images/projects/chart-money-icon.png" style="margin: 17px;"/>
                        <h3>Ums&auml;tze</h3>
                        <p>Noch in Entwicklung</p>
                </a></li>-->
                <li data-theme="b" data-icon="false"><a href="management/index.php">
                        <img src="assets/images/projects/Folder-Group-Folder-icon.png" style="margin: 17px;"/>
                        <h3>Verwaltung</h3>
                        <p>Auftraggeber, Kaufm&auml;nner, Projektleiter</p>
                </a></li>
<!--                <li data-theme="b" data-icon="false"><a href="#">
                        <img src="assets/images/Drop-Box-icon.png" width="48" style="margin: 17px;"/>
                        <h3>IdeenBox</h3>
                        <p>Vorschläge für neue Funktionen</p>
                </a></li>-->
            </ul>
            <br />
            <button onclick="location.href = 'php/logout.php'" data-ajax="false" data-theme="e" >Ausloggen</button>
        </div>
        <div data-role="footer" data-theme="c">
            <h4>&COPY; 2011 - Simon Zwicker</h4>
        </div>
    </div>
</body>
</html>